import { AxiosPromise } from 'axios';
import request from '@/utils/request';

export function dictList(dictType: string): AxiosPromise<any[]> {
  return request({
    url: '/system/dict/data/list',
    method: 'get',
    params: { pageNum: 1, pageSize: 50, dictType }
  });
}

export function dictListAll(dictType: string): AxiosPromise<any[]> {
  return request({
    url: '/system/dict/data/type/' + dictType,
    method: 'get'
  });
}
